const express = require("express");

// 引入json模块
const data = require("./data.json");

const app = express();

app.get("/api/seller", (req, res) => {
  res.json({
    data: data.seller,
  });
});

app.get("/api/goods", (req, res) => {
  res.json({
    data: data.goods,
  });
});

app.listen(3006, () => {
  console.log("服务已启动：http://localhost:3006");
});
